package com.gton.lpl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gton.lpl.entity.GpMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author GuoTong
 * @since 2021-10-17
 */
@Mapper
public interface GpMenuMapper extends BaseMapper<GpMenu> {

    /*自连接id查询*/
    List<GpMenu> selectMenuByTopId(@Param("id") long id);

    /*自连接分组查询*/
    List<GpMenu> selectMenuByGroup();
}
